@extends('layouts.main')

@section('title', '显示付款方')

@section('content')
<h3>@yield('title')</h3>
<div class="btn-group" role="group">
  	<a href="{{ action('BusinessData\PayerController@index') }}" class="btn btn-primary">返回列表</a>
</div>

<form class="form-horizontal">

    <div class="form-group">
		<label for="code" class="col-sm-2 control-label">付款方id</label>
		<div class="col-sm-3">
			<input class="form-control" id="code" name="code" value="{{ $model->code }}" disabled>
		</div>
    </div>

    <div class="form-group">
		<label for="name" class="col-sm-2 control-label">付款方名称</label>
		<div class="col-sm-3">
			<input class="form-control" id="name" name="name" value="{{ $model->name }}" disabled>
		</div>
    </div>

	<div class="form-group">
		<label for="category_code" class="col-sm-2 control-label">客户分类</label>
		<div class="col-sm-3">
			<select class="form-control" id="category_code" name="category_code" disabled>
				<option value="{{ $model->category_code }}" >{{ $model->category_code.'---'.$value->payer_category->name }}</option>
			</select>
		</div>
    </div>

    <div class="form-group">
		<div class="col-sm-offset-2 col-sm-10">
			<a href="{{ action('BusinessData\PayerController@edit', $model) }}" class="btn btn-primary">编辑</a>
		</div>
    </div>

</form>

@endsection